package spring.boot.fastdep.jwt.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import spring.boot.fastdep.jwt.common.Results;
import spring.boot.fastdep.jwt.service.LoginService;
import spring.boot.fastdep.jwt.vo.TUserLoginVO;

@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/login/username/password")
    public Results loginUsernamePassword(@RequestBody(required = false) TUserLoginVO vo) {
        return loginService.loginUsernamePassword(vo);
    }

}
